package com.skychyn.draw;

import java.util.Date;

public class DataEntry {
	
	Date date;
	int pressure;
	int temperature;
	
	public DataEntry(Date date, int pressure, int temperature) {	
		super();
		this.date = date;
		this.pressure = pressure;
		this.temperature = temperature;
	}
	
	public DataEntry(String date, String pressure, String temperature) {	
		super();
		this.date = new Date(Date.parse(date));
		this.pressure = Integer.valueOf(pressure);
		this.temperature = Integer.valueOf(temperature);
	}

	/**
	 * @return the date
	 */
	public Date getDate() {
		return date;
	}

	/**
	 * @param date the date to set
	 */
	public void setDate(Date date) {
		this.date = date;
	}

	/**
	 * @return the pressure
	 */
	public int getPressure() {
		return pressure;
	}

	/**
	 * @param pressure the pressure to set
	 */
	public void setPressure(int pressure) {
		this.pressure = pressure;
	}

	/**
	 * @return the temperature
	 */
	public int getTemperature() {
		return temperature;
	}

	/**
	 * @param temperature the temperature to set
	 */
	public void setTemperature(int temperature) {
		this.temperature = temperature;
	}
	
	
	
	

}
